package Server;

import javax.swing.*;
import java.awt.*;

public class ServerRun 
{
	private static JFrame frame;
	static PanelCentral panelCentral;
	static Server server;
		
	private static void show(){
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationByPlatform(true);
        frame.setVisible(true);
    }
	    
	private static void components() {
		Container c = frame.getContentPane();
		JMenuBar menuBar = new JMenuBar();
		frame.setJMenuBar(menuBar);
		menuBar.add(new MenuArchivo());
		c.add(new PanelCentral(), BorderLayout.CENTER);
	} 
	
	public static void cerrarVentana() {
		frame.dispose();
		System.exit(0);
	}

    public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
            	frame = new JFrame("Servidor RMI");
            	components();
                show();
            }
        });
    }
}
